﻿using UnityEngine;
using System.Collections;

public class TouchingKey : MonoBehaviour {
//	private bool touchingKey = false;
	private int addPoints = 1;

	void OnTriggerEnter2D(Collider2D other){
		if (other.tag == "Player") {
			StartUpScripts.keysGrabbed = StartUpScripts.keysGrabbed + addPoints;
			Destroy(gameObject);
		}
	}
}
